#pragma once
/*****************************************************************************/
/* File: Common.h                                                            */
/* Author: Ozon                                                              */
/*                                                                           */
/* Description:																 */
/*	File with declarations and references common for all units.				 */
/*****************************************************************************/

#define dDOUBLE			//double precision of ODE

#include <windows.h>
#include <ode\ode.h>
#include "Utils.h"

#define PI 3.1415926
#define KEY_DOWN(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 1 : 0)
#define KEY_UP(vk_code)   ((GetAsyncKeyState(vk_code) & 0x8000) ? 0 : 1)

//types of drawable objects:
#define TYPE_BALL		1
#define TYPE_BAT		2
#define TYPE_BRICK		3
#define TYPE_LIMITER	4

#ifdef _UNICODE
#define _T(x)      L ## x
#else /* _UNICODE */
#define _T(x)      x
#endif /* _UNICODE */

extern float g_fTime;
extern bool g_bTwoPlayers;
extern bool g_bQuit;
